package br.com.fiap.si;

import br.com.fiap.si.Beans.Rm;

public class TesteProfund extends Operacoes {

	public static void main(String[] args) {
		Rm n0 = new Rm(0);
		Rm n1 = new Rm(1);
		Rm n2 = new Rm(2);
		Rm n3 = new Rm(3);
		Rm n4 = new Rm(4);
		Rm n5 = new Rm(5);
		Rm n6 = new Rm(6);
		Rm n7 = new Rm(7);
		Rm n8 = new Rm(8);
		Rm n9 = new Rm(9);
		
		Rm listaAlunos[] = new Rm[10];
		
		listaAlunos[0] = n0; 
		listaAlunos[1] = n1; 
		listaAlunos[2] = n2; 
		listaAlunos[3] = n3; 
		listaAlunos[4] = n4; 
		listaAlunos[5] = n5; 
		listaAlunos[6] = n6; 
		listaAlunos[7] = n7;
		listaAlunos[8] = n8;
		listaAlunos[9] = n9;
		
		n0.rms[0]= n8;
		
		n1.rms[0]= n3;
		n1.rms[1]= n7;
		n1.rms[2]= n9;
		n1.rms[3]= n2;
		
		n2.rms[0]= n8;
		n2.rms[1]= n1;
		n2.rms[2]= n4;
		
		n3.rms[0]= n4;
		n3.rms[1]= n5;
		n3.rms[2]= n1;
		
		n4.rms[0]= n2;
		n4.rms[1]= n3;
		
		n5.rms[0]= n3;
		n5.rms[1]= n6;
		
		n6.rms[0]= n7;
		n6.rms[1]= n5;
		
		n7.rms[0]= n1;
		n7.rms[1]= n6;
		
		n8.rms[0]= n2;
		n8.rms[1]= n0;
		n8.rms[2]= n9;
		
		n9.rms[0]= n1;
		n9.rms[1]= n8;
		
		buscaProfund(n2, 0);
		
		//for (Rm rm : listaAlunos) {
		//	JOptionPane.showMessageDialog(null, rm.valor + " - " + rm.nivel);
		//}
		
	}

}
